.class public Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/widget/AdapterView$OnItemClickListener;
.implements Lcom/baidu/mapapi/map/BaiduMap$OnMapStatusChangeListener;
.implements Lcom/baidu/mapapi/map/BaiduMap$OnMapTouchListener;
.implements Lcom/baidu/mapapi/search/geocode/OnGetGeoCoderResultListener;


# static fields
.field public static final a:Ljava/lang/String;


# instance fields
.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/ImageView;

.field private e:Lcom/baidu/mapapi/map/MapView;

.field private f:Lcom/baidu/mapapi/map/BaiduMap;

.field private g:Landroid/widget/ListView;

.field private h:Landroid/widget/RelativeLayout;

.field private i:Landroid/widget/ImageView;

.field private j:Landroid/widget/ImageView;

.field private k:Landroid/widget/RelativeLayout;

.field private l:Landroid/widget/Button;

.field private m:Landroid/widget/ImageButton;

.field private n:Landroid/widget/ImageButton;

.field private o:Lcom/waiqin365/lightapp/kehu/b/a;

.field private p:Ljava/util/List;

.field private q:Z

.field private r:Z

.field private s:Landroid/view/animation/Animation;

.field private t:Lcom/waiqin365/lightapp/kehu/k;

.field private u:Lcom/waiqin365/compons/c/g;

.field private v:Lcom/waiqin365/compons/c/f;

.field private w:Lcom/baidu/mapapi/search/geocode/GeoCoder;

.field private x:Lcom/baidu/mapapi/map/Marker;

.field private y:Lcom/baidu/mapapi/map/BitmapDescriptor;

.field private z:Lcom/waiqin365/lightapp/kehu/b/bw;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    const v1, 0x7f080519

    invoke-virtual {v0, v1}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getString(I)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->a:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const v0, 0x7f020074

    invoke-static {v0}, Lcom/baidu/mapapi/map/BitmapDescriptorFactory;->fromResource(I)Lcom/baidu/mapapi/map/BitmapDescriptor;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->y:Lcom/baidu/mapapi/map/BitmapDescriptor;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;Lcom/waiqin365/compons/c/f;)Lcom/waiqin365/compons/c/f;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->v:Lcom/waiqin365/compons/c/f;

    return-object p1
.end method

.method private a()V
    .locals 2

    invoke-static {}, Lcom/baidu/mapapi/search/geocode/GeoCoder;->newInstance()Lcom/baidu/mapapi/search/geocode/GeoCoder;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->w:Lcom/baidu/mapapi/search/geocode/GeoCoder;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->w:Lcom/baidu/mapapi/search/geocode/GeoCoder;

    invoke-virtual {v0, p0}, Lcom/baidu/mapapi/search/geocode/GeoCoder;->setOnGetGeoCodeResultListener(Lcom/baidu/mapapi/search/geocode/OnGetGeoCoderResultListener;)V

    const v0, 0x7f040006

    invoke-static {p0, v0}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->s:Landroid/view/animation/Animation;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->p:Ljava/util/List;

    new-instance v0, Lcom/waiqin365/lightapp/kehu/b/a;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->p:Ljava/util/List;

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/lightapp/kehu/b/a;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->o:Lcom/waiqin365/lightapp/kehu/b/a;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->e()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->q:Z

    return p1
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;)Lcom/waiqin365/compons/c/f;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->v:Lcom/waiqin365/compons/c/f;

    return-object v0
.end method

.method private b()V
    .locals 5

    const/4 v4, 0x1

    const v0, 0x7f0c0305

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->b:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->b:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0800aa

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0309

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->c:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->c:Landroid/widget/TextView;

    const v1, 0x7f080137

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c01da

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->d:Landroid/widget/ImageView;

    const v0, 0x7f0c020c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->h:Landroid/widget/RelativeLayout;

    const v0, 0x7f0c0210

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->l:Landroid/widget/Button;

    const v0, 0x7f0c0212

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageButton;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->m:Landroid/widget/ImageButton;

    const v0, 0x7f0c0213

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageButton;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->n:Landroid/widget/ImageButton;

    const v0, 0x7f0c020e

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->i:Landroid/widget/ImageView;

    const v0, 0x7f0c020f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->j:Landroid/widget/ImageView;

    const v0, 0x7f0c020d

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->k:Landroid/widget/RelativeLayout;

    const v0, 0x7f0c0133

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->g:Landroid/widget/ListView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->g:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->o:Lcom/waiqin365/lightapp/kehu/b/a;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    const v0, 0x7f0c020b

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/baidu/mapapi/map/MapView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->e:Lcom/baidu/mapapi/map/MapView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->e:Lcom/baidu/mapapi/map/MapView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/MapView;->showZoomControls(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->e:Lcom/baidu/mapapi/map/MapView;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/MapView;->getMap()Lcom/baidu/mapapi/map/BaiduMap;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0, v4}, Lcom/baidu/mapapi/map/BaiduMap;->setMapType(I)V

    const/high16 v0, 0x41700000    # 15.0f

    invoke-static {v0}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->zoomTo(F)Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->setMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/BaiduMap;->getUiSettings()Lcom/baidu/mapapi/map/UiSettings;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/baidu/mapapi/map/UiSettings;->setZoomGesturesEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0, v4}, Lcom/baidu/mapapi/map/BaiduMap;->setMyLocationEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0, p0}, Lcom/baidu/mapapi/map/BaiduMap;->setOnMapTouchListener(Lcom/baidu/mapapi/map/BaiduMap$OnMapTouchListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0, p0}, Lcom/baidu/mapapi/map/BaiduMap;->setOnMapStatusChangeListener(Lcom/baidu/mapapi/map/BaiduMap$OnMapStatusChangeListener;)V

    const v0, 0x7f0200b7

    invoke-static {v0}, Lcom/baidu/mapapi/map/BitmapDescriptorFactory;->fromResource(I)Lcom/baidu/mapapi/map/BitmapDescriptor;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    new-instance v2, Lcom/baidu/mapapi/map/MyLocationConfiguration;

    sget-object v3, Lcom/baidu/mapapi/map/MyLocationConfiguration$LocationMode;->NORMAL:Lcom/baidu/mapapi/map/MyLocationConfiguration$LocationMode;

    invoke-direct {v2, v3, v4, v0}, Lcom/baidu/mapapi/map/MyLocationConfiguration;-><init>(Lcom/baidu/mapapi/map/MyLocationConfiguration$LocationMode;ZLcom/baidu/mapapi/map/BitmapDescriptor;)V

    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/map/BaiduMap;->setMyLocationConfigeration(Lcom/baidu/mapapi/map/MyLocationConfiguration;)V

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;)Lcom/baidu/mapapi/map/BaiduMap;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    return-object v0
.end method

.method private c()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->d:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->h:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, p0}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->l:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->g:Landroid/widget/ListView;

    invoke-virtual {v0, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->m:Landroid/widget/ImageButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->n:Landroid/widget/ImageButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->c:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;)Lcom/baidu/mapapi/map/Marker;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->x:Lcom/baidu/mapapi/map/Marker;

    return-object v0
.end method

.method private d()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->t:Lcom/waiqin365/lightapp/kehu/k;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightapp/kehu/k;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/kehu/k;-><init>(Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->t:Lcom/waiqin365/lightapp/kehu/k;

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->u:Lcom/waiqin365/compons/c/g;

    if-nez v0, :cond_1

    new-instance v0, Lcom/waiqin365/compons/c/g;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->t:Lcom/waiqin365/lightapp/kehu/k;

    invoke-direct {v0, v1}, Lcom/waiqin365/compons/c/g;-><init>(Lcom/waiqin365/compons/c/l;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->u:Lcom/waiqin365/compons/c/g;

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->u:Lcom/waiqin365/compons/c/g;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/g;->c()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->u:Lcom/waiqin365/compons/c/g;

    const/16 v1, 0x2710

    invoke-virtual {v0, v1}, Lcom/waiqin365/compons/c/g;->a(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->u:Lcom/waiqin365/compons/c/g;

    invoke-virtual {v0, p0}, Lcom/waiqin365/compons/c/g;->a(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->u:Lcom/waiqin365/compons/c/g;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/g;->e()V

    return-void
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;)Landroid/widget/ImageView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->j:Landroid/widget/ImageView;

    return-object v0
.end method

.method private e()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->u:Lcom/waiqin365/compons/c/g;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->u:Lcom/waiqin365/compons/c/g;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/g;->f()V

    :cond_0
    return-void
.end method

.method static synthetic f(Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;)Landroid/widget/RelativeLayout;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->k:Landroid/widget/RelativeLayout;

    return-object v0
.end method

.method private f()V
    .locals 4

    const/4 v2, 0x0

    move v1, v2

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->p:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->p:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/bw;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->j:Z

    const/4 v3, 0x1

    if-ne v0, v3, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->p:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/bw;

    iput-boolean v2, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->j:Z

    :cond_0
    return-void

    :cond_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method

.method static synthetic g(Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;)Landroid/view/animation/Animation;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->s:Landroid/view/animation/Animation;

    return-object v0
.end method

.method static synthetic h(Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;)Landroid/widget/ImageView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->i:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic i(Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;)Lcom/baidu/mapapi/search/geocode/GeoCoder;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->w:Lcom/baidu/mapapi/search/geocode/GeoCoder;

    return-object v0
.end method


# virtual methods
.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 7

    const/4 v6, 0x0

    invoke-super {p0, p1, p2, p3}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onActivityResult(IILandroid/content/Intent;)V

    const/4 v0, -0x1

    if-ne p2, v0, :cond_1

    const/16 v0, 0x79

    if-ne p1, v0, :cond_1

    if-eqz p3, :cond_1

    const-string/jumbo v0, "cmPoiInfo"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/bw;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->z:Lcom/waiqin365/lightapp/kehu/b/bw;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->z:Lcom/waiqin365/lightapp/kehu/b/bw;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->x:Lcom/baidu/mapapi/map/Marker;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->x:Lcom/baidu/mapapi/map/Marker;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/Marker;->remove()V

    :cond_0
    new-instance v0, Lcom/baidu/mapapi/model/LatLng;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->z:Lcom/waiqin365/lightapp/kehu/b/bw;

    iget-wide v2, v1, Lcom/waiqin365/lightapp/kehu/b/bw;->f:D

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->z:Lcom/waiqin365/lightapp/kehu/b/bw;

    iget-wide v4, v1, Lcom/waiqin365/lightapp/kehu/b/bw;->g:D

    invoke-direct {v0, v2, v3, v4, v5}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->w:Lcom/baidu/mapapi/search/geocode/GeoCoder;

    new-instance v2, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;

    invoke-direct {v2}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;-><init>()V

    invoke-virtual {v2, v0}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;->location(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/search/geocode/GeoCoder;->reverseGeoCode(Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;)Z

    invoke-static {v0}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->newLatLng(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v2, v1}, Lcom/baidu/mapapi/map/BaiduMap;->animateMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->i:Landroid/widget/ImageView;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->s:Landroid/view/animation/Animation;

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->startAnimation(Landroid/view/animation/Animation;)V

    new-instance v1, Lcom/baidu/mapapi/map/MarkerOptions;

    invoke-direct {v1}, Lcom/baidu/mapapi/map/MarkerOptions;-><init>()V

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/MarkerOptions;->position(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->y:Lcom/baidu/mapapi/map/BitmapDescriptor;

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/MarkerOptions;->icon(Lcom/baidu/mapapi/map/BitmapDescriptor;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->addOverlay(Lcom/baidu/mapapi/map/OverlayOptions;)Lcom/baidu/mapapi/map/Overlay;

    move-result-object v0

    check-cast v0, Lcom/baidu/mapapi/map/Marker;

    check-cast v0, Lcom/baidu/mapapi/map/Marker;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->x:Lcom/baidu/mapapi/map/Marker;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->j:Landroid/widget/ImageView;

    const/high16 v1, 0x41880000    # 17.0f

    invoke-static {p0, v1}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v1

    invoke-virtual {v0, v6, v6, v6, v1}, Landroid/widget/ImageView;->setPadding(IIII)V

    iput-boolean v6, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->q:Z

    :cond_1
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 9

    const/4 v8, 0x1

    const/4 v2, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :cond_0
    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->back()V

    goto :goto_0

    :sswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->v:Lcom/waiqin365/compons/c/f;

    if-eqz v0, :cond_0

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "lat"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->v:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v2}, Lcom/waiqin365/compons/c/f;->b()D

    move-result-wide v2

    invoke-virtual {v0, v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;D)Landroid/content/Intent;

    const-string/jumbo v1, "lng"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->v:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v2}, Lcom/waiqin365/compons/c/f;->c()D

    move-result-wide v2

    invoke-virtual {v0, v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;D)Landroid/content/Intent;

    const/16 v1, 0x79

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->overridePendingTransition(II)V

    goto :goto_0

    :sswitch_2
    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->d()V

    goto :goto_0

    :sswitch_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/BaiduMap;->getMapStatus()Lcom/baidu/mapapi/map/MapStatus;

    move-result-object v0

    iget v0, v0, Lcom/baidu/mapapi/map/MapStatus;->zoom:F

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1}, Lcom/baidu/mapapi/map/BaiduMap;->getMaxZoomLevel()F

    move-result v1

    cmpg-float v0, v0, v1

    if-gez v0, :cond_1

    invoke-static {}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->zoomIn()Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->animateMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->n:Landroid/widget/ImageButton;

    invoke-virtual {v0, v8}, Landroid/widget/ImageButton;->setEnabled(Z)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->m:Landroid/widget/ImageButton;

    invoke-virtual {v0, v2}, Landroid/widget/ImageButton;->setEnabled(Z)V

    goto :goto_0

    :sswitch_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/BaiduMap;->getMapStatus()Lcom/baidu/mapapi/map/MapStatus;

    move-result-object v0

    iget v0, v0, Lcom/baidu/mapapi/map/MapStatus;->zoom:F

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1}, Lcom/baidu/mapapi/map/BaiduMap;->getMinZoomLevel()F

    move-result v1

    cmpl-float v0, v0, v1

    if-lez v0, :cond_2

    invoke-static {}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->zoomOut()Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->animateMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->m:Landroid/widget/ImageButton;

    invoke-virtual {v0, v8}, Landroid/widget/ImageButton;->setEnabled(Z)V

    goto/16 :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->n:Landroid/widget/ImageButton;

    invoke-virtual {v0, v2}, Landroid/widget/ImageButton;->setEnabled(Z)V

    goto/16 :goto_0

    :sswitch_5
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->p:Ljava/util/List;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->p:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    move v1, v2

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->p:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->p:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/bw;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->j:Z

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->p:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/bw;

    iget-wide v4, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->g:D

    iget-wide v6, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->f:D

    invoke-static {v4, v5, v6, v7}, Lcom/waiqin365/compons/c/m;->b(DD)[D

    move-result-object v1

    aget-wide v2, v1, v2

    iput-wide v2, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->f:D

    aget-wide v2, v1, v8

    iput-wide v2, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->g:D

    sget-object v1, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->a:Ljava/lang/String;

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    const-string/jumbo v1, ""

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->a:Ljava/lang/String;

    :cond_3
    if-eqz v0, :cond_4

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v2, "customer_name"

    iget-object v3, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->a:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "customer_address"

    iget-object v3, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->b:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "customer_latitude"

    iget-wide v4, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->f:D

    invoke-virtual {v1, v2, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;D)Landroid/content/Intent;

    const-string/jumbo v2, "customer_longitude"

    iget-wide v4, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->g:D

    invoke-virtual {v1, v2, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;D)Landroid/content/Intent;

    const-string/jumbo v2, "province"

    iget-object v3, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->k:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "city"

    iget-object v3, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->l:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "district"

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->m:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/4 v0, -0x1

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->setResult(ILandroid/content/Intent;)V

    :cond_4
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->back()V

    goto/16 :goto_0

    :cond_5
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto/16 :goto_1

    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0c01da -> :sswitch_0
        0x7f0c020c -> :sswitch_1
        0x7f0c0210 -> :sswitch_2
        0x7f0c0212 -> :sswitch_3
        0x7f0c0213 -> :sswitch_4
        0x7f0c0309 -> :sswitch_5
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f03004c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->setContentView(I)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->b()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->c()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->d()V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->u:Lcom/waiqin365/compons/c/g;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->u:Lcom/waiqin365/compons/c/g;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/g;->h()V

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->e:Lcom/baidu/mapapi/map/MapView;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->e:Lcom/baidu/mapapi/map/MapView;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/MapView;->onDestroy()V

    :cond_1
    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onDestroy()V

    return-void
.end method

.method public onGetGeoCodeResult(Lcom/baidu/mapapi/search/geocode/GeoCodeResult;)V
    .locals 0

    return-void
.end method

.method public onGetReverseGeoCodeResult(Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;)V
    .locals 8

    const/4 v2, 0x0

    const/4 v6, 0x1

    const/4 v7, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->p:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->z:Lcom/waiqin365/lightapp/kehu/b/bw;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->z:Lcom/waiqin365/lightapp/kehu/b/bw;

    iput-boolean v6, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->j:Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->p:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    move-object v1, v2

    :goto_0
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    if-eqz p1, :cond_4

    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;->getPoiList()Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_4

    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;->getPoiList()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :cond_0
    :goto_1
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_4

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/mapapi/search/core/PoiInfo;

    iget-object v5, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->z:Lcom/waiqin365/lightapp/kehu/b/bw;

    if-eqz v5, :cond_1

    iget-object v5, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->z:Lcom/waiqin365/lightapp/kehu/b/bw;

    iget-object v5, v5, Lcom/waiqin365/lightapp/kehu/b/bw;->a:Ljava/lang/String;

    if-eqz v5, :cond_1

    iget-object v5, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->z:Lcom/waiqin365/lightapp/kehu/b/bw;

    iget-object v5, v5, Lcom/waiqin365/lightapp/kehu/b/bw;->a:Ljava/lang/String;

    iget-object v6, v0, Lcom/baidu/mapapi/search/core/PoiInfo;->name:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_0

    :cond_1
    new-instance v5, Lcom/waiqin365/lightapp/kehu/b/bw;

    invoke-direct {v5, v0}, Lcom/waiqin365/lightapp/kehu/b/bw;-><init>(Lcom/baidu/mapapi/search/core/PoiInfo;)V

    iput-boolean v7, v5, Lcom/waiqin365/lightapp/kehu/b/bw;->j:Z

    if-eqz v1, :cond_2

    iget-object v0, v1, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult$AddressComponent;->province:Ljava/lang/String;

    iput-object v0, v5, Lcom/waiqin365/lightapp/kehu/b/bw;->k:Ljava/lang/String;

    iget-object v0, v1, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult$AddressComponent;->city:Ljava/lang/String;

    iput-object v0, v5, Lcom/waiqin365/lightapp/kehu/b/bw;->l:Ljava/lang/String;

    iget-object v0, v1, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult$AddressComponent;->district:Ljava/lang/String;

    iput-object v0, v5, Lcom/waiqin365/lightapp/kehu/b/bw;->m:Ljava/lang/String;

    :cond_2
    invoke-interface {v3, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    :cond_3
    new-instance v1, Lcom/waiqin365/lightapp/kehu/b/bw;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/kehu/b/bw;-><init>()V

    sget-object v0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->a:Ljava/lang/String;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/b/bw;->a:Ljava/lang/String;

    if-eqz p1, :cond_5

    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;->getLocation()Lcom/baidu/mapapi/model/LatLng;

    move-result-object v0

    if-eqz v0, :cond_5

    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;->getAddressDetail()Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult$AddressComponent;

    move-result-object v0

    iget-object v3, v0, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult$AddressComponent;->province:Ljava/lang/String;

    iput-object v3, v1, Lcom/waiqin365/lightapp/kehu/b/bw;->k:Ljava/lang/String;

    iget-object v3, v0, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult$AddressComponent;->city:Ljava/lang/String;

    iput-object v3, v1, Lcom/waiqin365/lightapp/kehu/b/bw;->l:Ljava/lang/String;

    iget-object v3, v0, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult$AddressComponent;->district:Ljava/lang/String;

    iput-object v3, v1, Lcom/waiqin365/lightapp/kehu/b/bw;->m:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;->getAddress()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v1, Lcom/waiqin365/lightapp/kehu/b/bw;->b:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;->getLocation()Lcom/baidu/mapapi/model/LatLng;

    move-result-object v3

    iget-wide v4, v3, Lcom/baidu/mapapi/model/LatLng;->latitude:D

    iput-wide v4, v1, Lcom/waiqin365/lightapp/kehu/b/bw;->f:D

    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;->getLocation()Lcom/baidu/mapapi/model/LatLng;

    move-result-object v3

    iget-wide v4, v3, Lcom/baidu/mapapi/model/LatLng;->longitude:D

    iput-wide v4, v1, Lcom/waiqin365/lightapp/kehu/b/bw;->g:D

    iput-boolean v6, v1, Lcom/waiqin365/lightapp/kehu/b/bw;->j:Z

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->p:Ljava/util/List;

    invoke-interface {v3, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    move-object v1, v0

    goto/16 :goto_0

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->p:Ljava/util/List;

    invoke-interface {v0, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    iput-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->z:Lcom/waiqin365/lightapp/kehu/b/bw;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->o:Lcom/waiqin365/lightapp/kehu/b/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/b/a;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->g:Landroid/widget/ListView;

    invoke-virtual {v0, v7}, Landroid/widget/ListView;->smoothScrollToPosition(I)V

    return-void

    :cond_5
    move-object v1, v2

    goto/16 :goto_0
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 10

    const/high16 v9, 0x41880000    # 17.0f

    const/4 v8, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->p:Ljava/util/List;

    invoke-interface {v0, p3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/bw;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f()V

    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->j:Z

    new-instance v1, Lcom/baidu/mapapi/model/LatLng;

    iget-wide v2, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->f:D

    iget-wide v4, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->g:D

    invoke-direct {v1, v2, v3, v4, v5}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    invoke-static {v1}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->newLatLng(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v2, v1}, Lcom/baidu/mapapi/map/BaiduMap;->animateMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->x:Lcom/baidu/mapapi/map/Marker;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->x:Lcom/baidu/mapapi/map/Marker;

    invoke-virtual {v1}, Lcom/baidu/mapapi/map/Marker;->remove()V

    :cond_0
    if-nez p3, :cond_2

    iget-boolean v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->q:Z

    if-eqz v1, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->j:Landroid/widget/ImageView;

    const/high16 v1, 0x40400000    # 3.0f

    invoke-static {p0, v1}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v1

    invoke-virtual {v0, v8, v8, v8, v1}, Landroid/widget/ImageView;->setPadding(IIII)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->i:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->s:Landroid/view/animation/Animation;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->startAnimation(Landroid/view/animation/Animation;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->o:Lcom/waiqin365/lightapp/kehu/b/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/b/a;->notifyDataSetChanged()V

    return-void

    :cond_1
    new-instance v1, Lcom/baidu/mapapi/map/MarkerOptions;

    invoke-direct {v1}, Lcom/baidu/mapapi/map/MarkerOptions;-><init>()V

    new-instance v2, Lcom/baidu/mapapi/model/LatLng;

    iget-wide v4, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->f:D

    iget-wide v6, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->g:D

    invoke-direct {v2, v4, v5, v6, v7}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/map/MarkerOptions;->position(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->y:Lcom/baidu/mapapi/map/BitmapDescriptor;

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/MarkerOptions;->icon(Lcom/baidu/mapapi/map/BitmapDescriptor;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->addOverlay(Lcom/baidu/mapapi/map/OverlayOptions;)Lcom/baidu/mapapi/map/Overlay;

    move-result-object v0

    check-cast v0, Lcom/baidu/mapapi/map/Marker;

    check-cast v0, Lcom/baidu/mapapi/map/Marker;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->x:Lcom/baidu/mapapi/map/Marker;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->j:Landroid/widget/ImageView;

    invoke-static {p0, v9}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v1

    invoke-virtual {v0, v8, v8, v8, v1}, Landroid/widget/ImageView;->setPadding(IIII)V

    goto :goto_0

    :cond_2
    new-instance v1, Lcom/baidu/mapapi/map/MarkerOptions;

    invoke-direct {v1}, Lcom/baidu/mapapi/map/MarkerOptions;-><init>()V

    new-instance v2, Lcom/baidu/mapapi/model/LatLng;

    iget-wide v4, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->f:D

    iget-wide v6, v0, Lcom/waiqin365/lightapp/kehu/b/bw;->g:D

    invoke-direct {v2, v4, v5, v6, v7}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/map/MarkerOptions;->position(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->y:Lcom/baidu/mapapi/map/BitmapDescriptor;

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/MarkerOptions;->icon(Lcom/baidu/mapapi/map/BitmapDescriptor;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->addOverlay(Lcom/baidu/mapapi/map/OverlayOptions;)Lcom/baidu/mapapi/map/Overlay;

    move-result-object v0

    check-cast v0, Lcom/baidu/mapapi/map/Marker;

    check-cast v0, Lcom/baidu/mapapi/map/Marker;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->x:Lcom/baidu/mapapi/map/Marker;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->j:Landroid/widget/ImageView;

    invoke-static {p0, v9}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v1

    invoke-virtual {v0, v8, v8, v8, v1}, Landroid/widget/ImageView;->setPadding(IIII)V

    goto :goto_0
.end method

.method public onMapStatusChange(Lcom/baidu/mapapi/map/MapStatus;)V
    .locals 0

    return-void
.end method

.method public onMapStatusChangeFinish(Lcom/baidu/mapapi/map/MapStatus;)V
    .locals 4

    const/4 v3, 0x0

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->r:Z

    if-eqz v0, :cond_0

    iget-object v0, p1, Lcom/baidu/mapapi/map/MapStatus;->target:Lcom/baidu/mapapi/model/LatLng;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->w:Lcom/baidu/mapapi/search/geocode/GeoCoder;

    new-instance v2, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;

    invoke-direct {v2}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;-><init>()V

    invoke-virtual {v2, v0}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;->location(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/search/geocode/GeoCoder;->reverseGeoCode(Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;)Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->i:Landroid/widget/ImageView;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->s:Landroid/view/animation/Animation;

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->startAnimation(Landroid/view/animation/Animation;)V

    new-instance v1, Lcom/baidu/mapapi/map/MarkerOptions;

    invoke-direct {v1}, Lcom/baidu/mapapi/map/MarkerOptions;-><init>()V

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/MarkerOptions;->position(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->y:Lcom/baidu/mapapi/map/BitmapDescriptor;

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/MarkerOptions;->icon(Lcom/baidu/mapapi/map/BitmapDescriptor;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->addOverlay(Lcom/baidu/mapapi/map/OverlayOptions;)Lcom/baidu/mapapi/map/Overlay;

    move-result-object v0

    check-cast v0, Lcom/baidu/mapapi/map/Marker;

    check-cast v0, Lcom/baidu/mapapi/map/Marker;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->x:Lcom/baidu/mapapi/map/Marker;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->j:Landroid/widget/ImageView;

    const/high16 v1, 0x41880000    # 17.0f

    invoke-static {p0, v1}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v1

    invoke-virtual {v0, v3, v3, v3, v1}, Landroid/widget/ImageView;->setPadding(IIII)V

    iput-boolean v3, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->q:Z

    iput-boolean v3, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->r:Z

    :cond_0
    return-void
.end method

.method public onMapStatusChangeStart(Lcom/baidu/mapapi/map/MapStatus;)V
    .locals 0

    return-void
.end method

.method public onTouch(Landroid/view/MotionEvent;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    return-void

    :pswitch_0
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->r:Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->x:Lcom/baidu/mapapi/map/Marker;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMAddCustomerByMapActivity;->x:Lcom/baidu/mapapi/map/Marker;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/Marker;->remove()V

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
    .end packed-switch
.end method
